package com.project.dao;

import com.project.entity.OrgInfo;

import java.util.List;

public interface OrgInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrgInfo record);

    int insertSelective(OrgInfo record);

    OrgInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrgInfo record);

    int updateByPrimaryKey(OrgInfo record);

    // 查找全部用户
    List<OrgInfo> selectAll();

    //  根据条件查找公司信息
    List<OrgInfo> selectByCondition(OrgInfo orgInfo);

    //根据managerid查找
    OrgInfo selectByManagerId(Integer id);

    //根据managerid更新
    int updateByManageIdSelective(OrgInfo orgInfo);

    /**
     * author: WheelChen
     * date: 2017/7/24
     * function: 根据创建者id修改信息
     *
     * @param orgInfo
     * @return
     */
    int updateBymodifyByCreatorIdSelective(OrgInfo orgInfo);



}